from tqsdk import TqApi, TqAuth,TqKq

api = TqApi(account=TqKq(), auth=TqAuth("cps168", "alibaba"))
serial = api.get_kline_serial("CZCE.RM509",60*60*24,10)
#serial = api.get_kline_serial("菜粕2509",60*60*24,5)
n=1
# while n<6:
# #api.wait_update()
# 	#print(serial.iloc[-n].close, serial.iloc[-n].high)
# 	n=n+1
print(serial.close)
api.close()
